/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package towerdefence.model;

import net.phys2d.math.Vector2f;
import net.phys2d.raw.shapes.Shape;

/**
 *
 * @author Gussoh
 */
public abstract class Block extends Destructible implements Purchaseable {

    public Block(Shape shape, float mass, Vector2f position) {
        super(shape, mass);
        setPosition(position.getX(), position.getY());
    }

    @Override
    public double getPrice() {
        return getI() + getMass() + getStrength();
    }
}
